package com.pap.sequences.sequence.mapper;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.sequences.sequence.entity.SysSequence;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysSequenceMapper extends PapBaseMapper<SysSequence> {
    int deleteByPrimaryKey(String sequenceId);

    int selectCountByMap(Map<Object, Object> map);

    List<SysSequence> selectListByMap(Map<Object, Object> map);

    SysSequence selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int insert(SysSequence record);

    int insertSelective(SysSequence record);

    SysSequence selectByPrimaryKey(String sequenceId);

    int updateByPrimaryKeySelective(SysSequence record);

    int updateByPrimaryKey(SysSequence record);
}